<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <input type="button" value="测试ajax_tool">
    <script type="text/javascript" src="ajax_tool.js"></script>
    <script>
        var test = document.querySelector('input');
        test.onclick = function () {
            ajaxAll('TestAjaxTool.php','name=lwh&age=20','post',function (data) {
                console.log(data);
            });
        };
    </script>
</body>
</html>